package cp2004_assignment2;
/**
 *
 * @author zhaoyingxi JCU Student Number: 11839209
 */
import java.awt.Rectangle;
import javax.swing.*;

public class view extends JFrame {
    public view() {
        try {
            toView();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void toView() throws Exception {
        this.setTitle("ViewList");
        getContentPane().setLayout(null);
        this.setResizable(false);
        jLabel2.setText("Product");
        jLabel2.setBounds(new Rectangle(151, 28, 42, 15));
        jLabel3.setText("Inventory");
        jLabel3.setBounds(new Rectangle(150, 53, 42, 15));

        jTextArea1.setBounds(new Rectangle(59, 75, 193, 94));
        jTextArea1.setEditable(false);
        this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
        this.getContentPane().add(jLabel2);
        this.getContentPane().add(jLabel3);
        this.getContentPane().add(jTextArea1);
        this.setSize(300,250);
        this.setVisible(true);
    }
    JLabel jLabel2 = new JLabel();
    JTextField jTextField2 = new JTextField();
    JLabel jLabel3 = new JLabel();
    JTextArea jTextArea1 = new JTextArea();
    public static void main(String[] args){
        view a = new view();
        a.setVisible(true);
    }
}

